$env:GOOS = "linux"
$env:GOARCH = "amd64"

# 编译 Go 程序
go build -ldflags "-X main.version=$(git describe --tags --always)" -o dist\img2pdf_linux_amd64

$env:GOARCH = "386"
go build -ldflags "-X main.version=$(git describe --tags --always)" -o dist\img2pdf_linux_386
